<%@include file="../context.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stock Screener</title>
<%@include file="../common_imports.jsp"%>
</head>
<body>
	<div class="main_wrapper">
		<div class="container-fluid">
			<div class="row-fluid">
				<%@include file="../stockscreener/header.jsp"%>
			</div>
			<div class="row-fluid">
				<div class="main_menu_wrapper span12">
					<div class="navbar">
						<div class="navbar-inner">
							<div class="container">
								<button class="btn btn-navbar collapsed"
									data-target=".nav-collapse" data-toggle="collapse"
									type="button">
									<div class="icon_wrapper"
										style="float: right; padding: 5px 10px;">
										<span class="icon-bar"></span> <span class="icon-bar"></span>
										<span class="icon-bar"></span>
									</div>
								</button>

								<div class="nav-collapse collapse">
									<%@include file="../header_link.jsp"%>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>

			<div class="row-fluid">
				<form:form method="POST" commandName="configData"
					action="${configData.ipgUrl}" class="form-horizontal">
					<div align="center">
						<input id="Version" type="hidden" name="Version" value="1.0.0" />
						<input id="MerID" type="hidden" value="${configData.merchantId}"
							name="MerID" /> 
						<input id="AcqID" type="hidden"
							value="${configData.instanceId}" name="AcqID" /> 
						<input
							id="MerRespURL" type="hidden" value="${configData.returnUrl}"
							name="MerRespURL" /> 
						<input id="PurchaseCurrency" type="hidden"
							value="144" name="PurchaseCurrency" /> 
						<input
							id="PurchaseCurrencyExponent" type="hidden" value="2"
							name="PurchaseCurrencyExponent" /> 
						<input id="OrderID"
							type="hidden" value="${orderId}" name="OrderID" /> 
						<input
							id="SignatureMethod" type="hidden" value="SHA1"
							name="SignatureMethod" /> 
						<input id="Signature" type="hidden"
							value="${hash}" name="Signature" /> 
						<input id="CaptureFlag"
							type="hidden" value="M" name="CaptureFlag" /> 
						<input
							id="PurchaseAmt" type="hidden" value="${packageData.price}"
							name="PurchaseAmt" /> 
						<input id="ShipToFirstName" type="hidden"
							value="${registedUser.userName}" name="ShipToFirstName" /> 
						<input
							id="ShipToLastName" type="hidden" value="${registedUser.email}"
							name="ShipToLastName" />


						<h3 align="center">Please click on the Submit button to
							continue processing.</h3>
						<br> <input type="submit" value="Submit">
					</div>
				</form:form>
			</div>
			<div class="footer_wrapper">
				<%@include file="../footer.jsp"%>
			</div>
		</div>
	</div>
</body>
</html>
